import instance from "@/utils/request";

export const sysPage = (params) => instance.post('/qxgl/sysPage', { ...params }) //获取平台
export const getOneSys = (params) => instance.post('/qxgl/getOneSys', { ...params }) //查询平台
export const addSys = (params) => instance.post('/qxgl/addSys', { ...params }) //添加平台
export const updateSys = (params) => instance.post('/qxgl/updateSys', { ...params }) //修改平台
export const deleteSys = (params) => instance.post('/qxgl/deleteSys', { ...params }) //删除平台


export const menuPage = (params) => instance.post('/qxgl/menuPage', { ...params }) //获取菜单
export const getSonMenu = (params) => instance.post('/qxgl/getSonMenu', { ...params }) //获取子菜单
export const addMenu = (params) => instance.post('/qxgl/addMenu', { ...params }) //新增菜单
export const updateMenu = (params) => instance.post('/qxgl/updateMenu', { ...params }) //修改菜单
export const deleteMenu = (params) => instance.post('/qxgl/deleteMenu', { ...params }) //删除菜单


export const functionPage = (params) => instance.post('/qxgl/getAllFunction', { ...params }) //获取功能
export const addFunction = (params) => instance.post('/qxgl/addFunction', { ...params }) //新增功能
export const updateFunction = (params) => instance.post('/qxgl/updateFunction', { ...params }) //修改功能
export const deleteFunction = (params) => instance.post('/qxgl/deleteFunction', { ...params }) //删除功能


export const getPage = (params) => instance.get('/qxgl/page', { params: params }) //获取角色组
export const addRole = (params) => instance.post('/qxgl/addRole', { ...params }) //添加角色组
export const updateRole = (params) => instance.put('/qxgl/updateRole', params) //修改角色组
export const deleteRole = (params) => instance.delete('/qxgl/deleteRole', { params: params }) //删除角色组
export const getAllRoles = (params) => instance.get('/qxgl/getAllRoles', { params: params }) //获取菜单功能
export const getRoleById = (params) => instance.get('/qxgl/getRoleById', { params: params }) //获取详情